<?php


$router = new Zend_Controller_Router_Rewrite();


$router->addRoute('newsList', 
     new Zend_Controller_Router_Route( 'news', array('controller'=>'index', 'action'=>'index'))
);

$router->addRoute('newsByPage', 
     new Zend_Controller_Router_Route( 'news/page/:pageId', array('controller' => 'index', 'action' => 'index'))
);

$router->addRoute('editnews',
     new Zend_Controller_Router_Route('editnews/:id', array('controller' => 'index', 'action' => 'editnews'))
);

$router->addRoute('savenews', 
     new Zend_Controller_Router_Route('savenews', array('controller' => 'index', 'action' => 'savenews'))
);

$router->addRoute('newsdelete', 
     new Zend_Controller_Router_Route('newsdelete/:id', array('controller' => 'index', 'action' => 'deletenews'))
);

$router->addRoute('newsfiltring', 
     new Zend_Controller_Router_Route('ajax/newsfiltring', array( 'controller' => 'ajax', 'action' => 'newsfiltring' ))
);

$router->addRoute('newslooking', 
     new Zend_Controller_Router_Route('ajax/newslooking', array( 'controller' => 'ajax', 'action' => 'newslooking' ))
);

